package com.jerry.serviceImpl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jerry.dao.UserDao;
import com.jerry.dto.UserDto;
import com.jerry.service.UserService;


@Service
public class UserServiceImpl implements UserService {
	

	@Autowired
	private UserDao userDao;
	
	
	
	public UserDto getUserById(int userId) {
		return userDao.selectUserById(userId);
	}



	
	// 获取购物车前一个小时 
	// 活跃用户电话 发送出去
	public void getUserInfo(Map<String, Object> param) {
		
		
		
		
		
	}
	
	public static void main(String[] args) {
		
//		System.out.println(System.getProperty("user.dir"));
//		System.out.println(UserServiceImpl.class.getClassLoader().getResource("/cache").getPath());
		
		System.out.println(UserServiceImpl.class.getResource("/"));;
		
		
		
//		String url = "http://api.sms654.com/smsUTF8.aspx";
//		Map<String, Object> parm =new HashMap<String, Object>();
//		parm.put("rece","json");
//		parm.put("type","send");
//		parm.put("username","1940499249");
//		parm.put("password",MD5.getMD5("HahaDx168"));
//		parm.put("gwid","3aedb657");
//		parm.put("mobile","13260675856,");// 15827333293
//		parm.put("message","【一键生成】快速设计展架、名片、海报等宣传物料。在线印刷，送货上门！下载即送20元优惠券！手机应用市场搜索“一键生成”即可。退订回T");
//		JSONObject json = HttpsUtils.doGet(url,parm);
//		System.out.println(json);
	}
	
}
